package org.springblade.modules.admin.vo.rescue;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author zcc
 * @version 1.0
 * @date 2023/2/27 14:08
 */
@Data
@ApiModel("报警人信息")
public class RescueUserInfoVo {

	private String userName;

	private String phone;

	@ApiModelProperty("报警类型")
	private Integer rescueType;

	@ApiModelProperty("报警类型名称")
	private String rescueTypeName;

	@ApiModelProperty("报警来源")
	private String rescueSourceName;

	@ApiModelProperty("报警创建时间")
	private Date createTime;

	@ApiModelProperty("报警备注")
	private String rescueDesc;

	public void setRescueType(Integer rescueType) {
		this.rescueType = rescueType;
		if (rescueType == 0) {
			this.rescueTypeName = "困人";
		} else {
			this.rescueTypeName = "伤人";
		}
	}
}
